package com.xuecheng.auth.interfaces.web;

import com.xuecheng.auth.application.service.WxLoginApplication;
import com.xuecheng.auth.domain.model.vo.req.WxLoginQry;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-09-08  14:57
 */
@Api(tags = "微信接口")
@Controller
public class WxLoginApi {

    @Autowired
    private WxLoginApplication wxLoginApplication;

    @ApiOperation("微信登录")
    @GetMapping("/wxLogin")
    public String wsLogin(WxLoginQry wxLoginQry){
        return wxLoginApplication.wxLogin(wxLoginQry);
    }
}
